package com.wgj.android.http.weixin.model;

import com.jiaai.xui.utils.XDateUtils;

import java.io.Serializable;
import java.util.Date;
import java.time.DateTimeException;
import java.util.HashSet;
import java.util.Set;

/**
 * Created by Administrator on 2017/11/27.
 */

public class CleanInfo implements Serializable {
    private Long lastCleanTime=new Date().getTime();

    private Set<String>  nickNames=new HashSet<>();

    public Long getLastCleanTime() {
        return lastCleanTime;
    }

    public void setLastCleanTime(Long lastCleanTime) {
        this.lastCleanTime = lastCleanTime;
    }

    public Set<String> getNickNames() {
        return nickNames;
    }

    public void setNickNames(Set<String> nickNames) {
        this.nickNames = nickNames;
    }


    public  boolean checkIsTimeOut(){
        if(XDateUtils.getTwoDataDifference(new Date(),new Date(lastCleanTime)).getDay()>7){
            return true;
        }else {
            return false;
        }
    }
}
